mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
test-js: Remove run-tests.sh
The shell script is no longer necessary -- simply run "test-js" from inside Serenity, or $SERENITY_ROOT/Build/Meta/Lagom/test-js from the host.
This commit is contained in:
parent
26acc8ba88
commit
cf537311e4
3 changed files with 14 additions and 21 deletions
|
@ -515,9 +515,18 @@ void TestRunner::print_test_results() const
|
|||
printf("Time: %-.3fs\n\n", m_end_time - m_start_time);
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
int main(int, char**)
|
||||
{
|
||||
ASSERT(argc == 2);
|
||||
TestRunner(argv[1]).run();
|
||||
#ifdef __serenity__
|
||||
TestRunner("/home/anon/js-tests").run();
|
||||
#else
|
||||
char* serenity_root = getenv("SERENITY_ROOT");
|
||||
if (!serenity_root) {
|
||||
printf("test-js requires the SERENITY_ROOT environment variable to be set");
|
||||
return 1;
|
||||
}
|
||||
TestRunner(String::format("%s/Libraries/LibJS/Tests", serenity_root)).run();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue