build: add STANDALONE option to build_exec and fix static builds

This commit is contained in:
Gabriel Ferreira
2022-09-24 13:16:05 -03:00
parent 7355065854
commit f8846d22ed
9 changed files with 36 additions and 13 deletions

View File

@@ -1280,7 +1280,12 @@ class NS3ConfigureTestCase(NS3BaseTestCase):
self.assertIn("Invalid library name: %s" % invalid_or_nonexistent_library, stderr)
elif invalid_or_nonexistent_library in ["gsd", "libfi", "calibre"]:
self.assertEqual(return_code, 2) # should fail due to missing library
self.assertIn("cannot find -l%s" % invalid_or_nonexistent_library, stderr)
# GCC's LD says cannot find
# LLVM's LLD says unable to find
if "lld" in stdout + stderr:
self.assertIn("unable to find library -l%s" % invalid_or_nonexistent_library, stderr)
else:
self.assertIn("cannot find -l%s" % invalid_or_nonexistent_library, stderr)
else:
pass
@@ -1611,8 +1616,8 @@ class NS3ConfigureTestCase(NS3BaseTestCase):
# Delete mold leftovers
os.remove("./mold-1.4.2-x86_64-linux.tar.gz")
# Reconfigure to clean leftovers before the next test
NS3ConfigureTestCase.cleaned_once = False
# Clean leftovers before proceeding
run_ns3("clean")
class NS3BuildBaseTestCase(NS3BaseTestCase):