summaryrefslogtreecommitdiffstats
path: root/tests/plat_is_concerned.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-12-07 12:07:15 (EST)
committer P. J. McDermott <pj@pehjota.net>2015-12-07 12:07:15 (EST)
commit34a77f7822126263fed5c72aedaa65b58fee94ac (patch)
treea3404e611672f64126298e2f0f6d3398b014851e /tests/plat_is_concerned.sh
parent84f3cccfb57fc8270b2ae14f0adf2c2ff24cc69b (diff)
parent41f638c961d5c7832e2b18a9f2e45a09b54dc53e (diff)
Merge branch 'feature/use-shld'
Diffstat (limited to 'tests/plat_is_concerned.sh')
-rwxr-xr-xtests/plat_is_concerned.sh85
1 files changed, 34 insertions, 51 deletions
diff --git a/tests/plat_is_concerned.sh b/tests/plat_is_concerned.sh
index 2bc808b..126e36a 100755
--- a/tests/plat_is_concerned.sh
+++ b/tests/plat_is_concerned.sh
@@ -20,10 +20,6 @@
# along with the ProteanOS Development Kit. If not, see
# <http://www.gnu.org/licenses/>.
-. "${srcdir}/tests/common.sh"
-
-use archplat
-
do_test()
{
local host_plat="${1}"
@@ -47,50 +43,37 @@ do_test()
fi
}
-# Platform: all
-
-do_test dev 'all' false
-
-do_test ao751h 'all' false
-
-do_test all 'all' true
-
-# Platform: any
-
-do_test dev 'any' true
-
-do_test ao751h 'any' true
-
-do_test all 'any' false
-
-# Platform: dev
-
-do_test dev 'dev' true
-
-do_test ao751h 'dev' false
-
-do_test all 'dev' false
-
-# Platform: !dev
-
-do_test dev '!dev' false
-
-do_test ao751h '!dev' true
-
-do_test all '!dev' false
-
-# Platform: dev dimension2400
-
-do_test 'dev' 'dev dimension2400' true
-
-do_test 'ao751h' 'dev dimension2400' false
-
-do_test 'all' 'dev dimension2400' false
-
-# Platform: dev all
-
-do_test 'dev' 'dev all' true
-
-do_test 'ao751h' 'dev all' false
-
-do_test 'all' 'dev all' true
+main()
+{
+ # Platform: all
+ do_test dev 'all' false
+ do_test ao751h 'all' false
+ do_test all 'all' true
+
+ # Platform: any
+ do_test dev 'any' true
+ do_test ao751h 'any' true
+ do_test all 'any' false
+
+ # Platform: dev
+ do_test dev 'dev' true
+ do_test ao751h 'dev' false
+ do_test all 'dev' false
+
+ # Platform: !dev
+ do_test dev '!dev' false
+ do_test ao751h '!dev' true
+ do_test all '!dev' false
+
+ # Platform: dev dimension2400
+ do_test 'dev' 'dev dimension2400' true
+ do_test 'ao751h' 'dev dimension2400' false
+ do_test 'all' 'dev dimension2400' false
+
+ # Platform: dev all
+ do_test 'dev' 'dev all' true
+ do_test 'ao751h' 'dev all' false
+ do_test 'all' 'dev all' true
+
+ return 0
+}