From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- testing/mozharness/test/helper_files/.noserc | 2 ++ .../helper_files/archives/archive-double-link.tar | Bin 0 -> 10240 bytes .../test/helper_files/archives/archive-escape.tar | Bin 0 -> 10240 bytes .../helper_files/archives/archive-link-abs.tar | Bin 0 -> 10240 bytes .../test/helper_files/archives/archive-link.tar | Bin 0 -> 10240 bytes .../test/helper_files/archives/archive-setuid.tar | Bin 0 -> 10240 bytes .../test/helper_files/archives/archive.tar | Bin 0 -> 10240 bytes .../test/helper_files/archives/archive.tar.bz2 | Bin 0 -> 256 bytes .../test/helper_files/archives/archive.tar.gz | Bin 0 -> 260 bytes .../test/helper_files/archives/archive.zip | Bin 0 -> 517 bytes .../archives/archive_invalid_filename.zip | Bin 0 -> 166 bytes .../helper_files/archives/reference/bin/script.sh | 3 +++ .../test/helper_files/archives/reference/lorem.txt | 1 + .../test/helper_files/create_archives.sh | 11 ++++++++++ .../mozharness/test/helper_files/init_hgrepo.sh | 23 +++++++++++++++++++++ testing/mozharness/test/helper_files/locales.json | 18 ++++++++++++++++ testing/mozharness/test/helper_files/locales.txt | 4 ++++ .../test/helper_files/mozconfig_manifest.json | 3 +++ 18 files changed, 65 insertions(+) create mode 100644 testing/mozharness/test/helper_files/.noserc create mode 100644 testing/mozharness/test/helper_files/archives/archive-double-link.tar create mode 100644 testing/mozharness/test/helper_files/archives/archive-escape.tar create mode 100644 testing/mozharness/test/helper_files/archives/archive-link-abs.tar create mode 100644 testing/mozharness/test/helper_files/archives/archive-link.tar create mode 100644 testing/mozharness/test/helper_files/archives/archive-setuid.tar create mode 100644 testing/mozharness/test/helper_files/archives/archive.tar create mode 100644 testing/mozharness/test/helper_files/archives/archive.tar.bz2 create mode 100644 testing/mozharness/test/helper_files/archives/archive.tar.gz create mode 100644 testing/mozharness/test/helper_files/archives/archive.zip create mode 100644 testing/mozharness/test/helper_files/archives/archive_invalid_filename.zip create mode 100755 testing/mozharness/test/helper_files/archives/reference/bin/script.sh create mode 100644 testing/mozharness/test/helper_files/archives/reference/lorem.txt create mode 100755 testing/mozharness/test/helper_files/create_archives.sh create mode 100755 testing/mozharness/test/helper_files/init_hgrepo.sh create mode 100644 testing/mozharness/test/helper_files/locales.json create mode 100644 testing/mozharness/test/helper_files/locales.txt create mode 100644 testing/mozharness/test/helper_files/mozconfig_manifest.json (limited to 'testing/mozharness/test/helper_files') diff --git a/testing/mozharness/test/helper_files/.noserc b/testing/mozharness/test/helper_files/.noserc new file mode 100644 index 0000000000..e6f21cf31d --- /dev/null +++ b/testing/mozharness/test/helper_files/.noserc @@ -0,0 +1,2 @@ +[nosetests] +with-xunit=1 diff --git a/testing/mozharness/test/helper_files/archives/archive-double-link.tar b/testing/mozharness/test/helper_files/archives/archive-double-link.tar new file mode 100644 index 0000000000..a1b77d3af8 Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive-double-link.tar differ diff --git a/testing/mozharness/test/helper_files/archives/archive-escape.tar b/testing/mozharness/test/helper_files/archives/archive-escape.tar new file mode 100644 index 0000000000..eb6ace807e Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive-escape.tar differ diff --git a/testing/mozharness/test/helper_files/archives/archive-link-abs.tar b/testing/mozharness/test/helper_files/archives/archive-link-abs.tar new file mode 100644 index 0000000000..1bbf9c0f46 Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive-link-abs.tar differ diff --git a/testing/mozharness/test/helper_files/archives/archive-link.tar b/testing/mozharness/test/helper_files/archives/archive-link.tar new file mode 100644 index 0000000000..2181c24a93 Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive-link.tar differ diff --git a/testing/mozharness/test/helper_files/archives/archive-setuid.tar b/testing/mozharness/test/helper_files/archives/archive-setuid.tar new file mode 100644 index 0000000000..55078dc826 Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive-setuid.tar differ diff --git a/testing/mozharness/test/helper_files/archives/archive.tar b/testing/mozharness/test/helper_files/archives/archive.tar new file mode 100644 index 0000000000..1dc094198f Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive.tar differ diff --git a/testing/mozharness/test/helper_files/archives/archive.tar.bz2 b/testing/mozharness/test/helper_files/archives/archive.tar.bz2 new file mode 100644 index 0000000000..c393ea4b88 Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive.tar.bz2 differ diff --git a/testing/mozharness/test/helper_files/archives/archive.tar.gz b/testing/mozharness/test/helper_files/archives/archive.tar.gz new file mode 100644 index 0000000000..0fbfa39b1c Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive.tar.gz differ diff --git a/testing/mozharness/test/helper_files/archives/archive.zip b/testing/mozharness/test/helper_files/archives/archive.zip new file mode 100644 index 0000000000..aa2fb34c16 Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive.zip differ diff --git a/testing/mozharness/test/helper_files/archives/archive_invalid_filename.zip b/testing/mozharness/test/helper_files/archives/archive_invalid_filename.zip new file mode 100644 index 0000000000..20bdc5acdf Binary files /dev/null and b/testing/mozharness/test/helper_files/archives/archive_invalid_filename.zip differ diff --git a/testing/mozharness/test/helper_files/archives/reference/bin/script.sh b/testing/mozharness/test/helper_files/archives/reference/bin/script.sh new file mode 100755 index 0000000000..134f2933c9 --- /dev/null +++ b/testing/mozharness/test/helper_files/archives/reference/bin/script.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo Hello world! diff --git a/testing/mozharness/test/helper_files/archives/reference/lorem.txt b/testing/mozharness/test/helper_files/archives/reference/lorem.txt new file mode 100644 index 0000000000..d2cf010d36 --- /dev/null +++ b/testing/mozharness/test/helper_files/archives/reference/lorem.txt @@ -0,0 +1 @@ +Lorem ipsum dolor sit amet. diff --git a/testing/mozharness/test/helper_files/create_archives.sh b/testing/mozharness/test/helper_files/create_archives.sh new file mode 100755 index 0000000000..314b55d276 --- /dev/null +++ b/testing/mozharness/test/helper_files/create_archives.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Script to auto-generate the different archive types under the archives directory. + +cd archives + +rm archive.* + +tar cf archive.tar -C reference . +gzip -fk archive.tar >archive.tar.gz +bzip2 -fk archive.tar >archive.tar.bz2 +cd reference && zip ../archive.zip -r * && cd .. diff --git a/testing/mozharness/test/helper_files/init_hgrepo.sh b/testing/mozharness/test/helper_files/init_hgrepo.sh new file mode 100755 index 0000000000..0f4561695f --- /dev/null +++ b/testing/mozharness/test/helper_files/init_hgrepo.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# Set up an hg repo for testing +dest=$1 +if [ -z "$dest" ]; then + echo You must specify a destination directory 1>&2 + exit 1 +fi + +rm -rf $dest +hg init $dest +cd $dest + +echo "Hello world $RANDOM" > hello.txt +hg add hello.txt +hg commit -m "Adding hello" + +hg branch branch2 > /dev/null +echo "So long, farewell" >> hello.txt +hg commit -m "Changing hello on branch" + +hg checkout default +echo "Is this thing on?" >> hello.txt +hg commit -m "Last change on default" diff --git a/testing/mozharness/test/helper_files/locales.json b/testing/mozharness/test/helper_files/locales.json new file mode 100644 index 0000000000..c9056b1d15 --- /dev/null +++ b/testing/mozharness/test/helper_files/locales.json @@ -0,0 +1,18 @@ +{ + "ar": { + "revision": "default", + "platforms": ["maemo"] + }, + "be": { + "revision": "default", + "platforms": ["maemo"] + }, + "de": { + "revision": "default", + "platforms": ["maemo", "maemo-multilocale", "android-multilocale"] + }, + "es-ES": { + "revision": "default", + "platforms": ["maemo", "maemo-multilocale", "android-multilocale"] + } +} diff --git a/testing/mozharness/test/helper_files/locales.txt b/testing/mozharness/test/helper_files/locales.txt new file mode 100644 index 0000000000..0b65ab76df --- /dev/null +++ b/testing/mozharness/test/helper_files/locales.txt @@ -0,0 +1,4 @@ +ar +be +de +es-ES diff --git a/testing/mozharness/test/helper_files/mozconfig_manifest.json b/testing/mozharness/test/helper_files/mozconfig_manifest.json new file mode 100644 index 0000000000..6f3fc3eea9 --- /dev/null +++ b/testing/mozharness/test/helper_files/mozconfig_manifest.json @@ -0,0 +1,3 @@ +{ + "gecko_path": "path/to/mozconfig" +} -- cgit v1.2.3