From 5498a6c2630727541fdc9c367b35ae0b1f32e8e9 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 11 Jul 2022 11:02:17 +0300 Subject: [PATCH] tests: add more -skip-unused cases to `v test-all` --- cmd/tools/vtest-all.v | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/tools/vtest-all.v b/cmd/tools/vtest-all.v index 692acd6921..8f8151dafe 100644 --- a/cmd/tools/vtest-all.v +++ b/cmd/tools/vtest-all.v @@ -85,6 +85,16 @@ fn get_all_commands() []Command { okmsg: 'V can output a .c file, without compiling further.' rmfile: 'hhww.c' } + res << Command{ + line: '$vexe -skip-unused examples/hello_world.v' + okmsg: 'V can compile hello world with -skip-unused.' + rmfile: 'examples/hello_world' + } + res << Command{ + line: '$vexe -skip-unused -profile - examples/hello_world.v' + okmsg: 'V can compile hello world with both -skip-unused and -profile .' + rmfile: 'examples/hello_world' + } $if linux || macos { res << Command{ line: '$vexe run examples/hello_world.v'