Merge branch 'f41' into c10s

Resolves: RHEL-54599 Add gnome-shell-extension-no-overview to RHEL 10
This commit is contained in:
Takao Fujiwara 2024-09-16 18:29:00 +09:00
commit 572726d61d
8 changed files with 83 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1,27 @@
From b0d987702a63f27a062fd2e2da5d99cc0799972e Mon Sep 17 00:00:00 2001
From: Takao Fujiwara <tfujiwar@redhat.com>
Date: Fri, 6 Sep 2024 13:50:52 +0900
Subject: [PATCH] Add gnome-shell-47
---
metadata.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/metadata.json b/metadata.json
index 695d317..57cfc5d 100644
--- a/metadata.json
+++ b/metadata.json
@@ -3,8 +3,8 @@
"description": "No overview at start-up. Nothing more.",
"name": "No overview at start-up",
"original-authors": ["fthx"],
- "shell-version": ["46"],
+ "shell-version": ["46", "47"],
"url": "https://github.com/fthx/no-overview",
"uuid": "no-overview@fthx",
"version": 999
}
\ No newline at end of file
--
2.45.2

View File

@ -12,6 +12,7 @@ Source0: https://github.com/fthx/no-overview/archive/refs/tags/v%{version
Source1: https://raw.githubusercontent.com/fthx/no-overview/main/LICENSE#/%{extension}-LICENSE
Source2: https://raw.githubusercontent.com/fthx/no-overview/main/README.md#/%{extension}-README.md
#Patch0: %%{name}-HEAD.patch
Patch0: %{name}-HEAD.patch
BuildArch: noarch
# rhbz#2001561 Delete to require gnome-shell-extension-common
#Requires: gnome-shell-extension-common

5
plans/test.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View File

@ -0,0 +1,8 @@
summary: Lint check for GNOME-Shell extension files
test: ./test.sh
framework: beakerlib
require:
- gjs
- glib2
- gnome-shell-extension-no-overview
- json-glib-devel

17
tests/validation/main.js Normal file
View File

@ -0,0 +1,17 @@
import GObject from 'gi://GObject';
export const LayoutManager = GObject.registerClass(
class LayoutManager extends GObject.Object {
constructor() {
super();
this._startingUp = 1;
}
connectObject(object) {
}
disconnectObject(object) {
}
});
export let layoutManager = new LayoutManager();

7
tests/validation/test.js Normal file
View File

@ -0,0 +1,7 @@
import GObject from 'gi://GObject';
import NoOverviewExtension from './extension.js';
let extension = new NoOverviewExtension();
extension.enable();
extension.disable();

17
tests/validation/test.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# gjs or js115 in mozjs115-devel provides very simple validations.
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun -t "sed -e 's|resource:.*/main.js|./main.js|' /usr/share/gnome-shell/extensions/no-overview@fthx/extension.js > extension.js"
rlPhaseEnd
rlPhaseStartTest
rlRun -t "json-glib-validate /usr/share/gnome-shell/extensions/no-overview@fthx/metadata.json"
rlRun -t "gjs -m test.js"
rlPhaseEnd
rlJournalEnd