From e6956bd4d8aa268331e7ad9b9c72a7d69b1ffe11 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 15 Nov 2022 17:01:28 -0500 Subject: [PATCH] [ez] Remove test262-all script Just realized we can run all tests without encountering the arg limit if a string is passed in. This is much better because the test runner will count all tests in the parent test directory rather than run the tests in each subdirectory --- compiler/forget/package.json | 3 ++- compiler/forget/scripts/test262-all.sh | 11 ----------- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100755 compiler/forget/scripts/test262-all.sh diff --git a/compiler/forget/package.json b/compiler/forget/package.json index 48654b96fe..43997c63b6 100644 --- a/compiler/forget/package.json +++ b/compiler/forget/package.json @@ -15,7 +15,8 @@ "test": "yarn build && jest", "ts:analyze-trace": "scripts/ts-analyze-trace.sh", "test262": "yarn run --silent test262-harness --preprocessor=scripts/test262-preprocessor.js", - "test262:all": "scripts/test262-all.sh" + "test262:all": "yarn run --silent test262 'test262/test/**/*.js'", + "test262:ci": "yarn run --silent test262 --error-for-failures 'test262/test/**/*.js'" }, "repository": { "type": "git", diff --git a/compiler/forget/scripts/test262-all.sh b/compiler/forget/scripts/test262-all.sh deleted file mode 100755 index e1b84ae7d9..0000000000 --- a/compiler/forget/scripts/test262-all.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# There are over 50,000+ tests in test262, and the test harness only accepts arrays of filepaths -# not directories. This script iterates through all the test folders to break up the tests into -# chunks. - -set -eo pipefail - -for dir in test262/test/*; -do - yarn run --silent test262 $dir/**/*.js; -done \ No newline at end of file