Skip to content

Commit de3ff01

Browse files
committed
Add test for gcc_info()
1 parent f9e5a71 commit de3ff01

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
include("rsp/testing")
2+
include("rsp/compilers/gcc")
3+
include("rsp/debug")
4+
5+
define_test_case(
6+
"GCC Info Test"
7+
LABELS "gcc;version;compilers"
8+
)
9+
10+
# -------------------------------------------------------------------------------------------------------------- #
11+
# Actual tests
12+
# -------------------------------------------------------------------------------------------------------------- #
13+
14+
define_test("can obtain GCC path and version" "can_obtain_gcc_info")
15+
function(can_obtain_gcc_info)
16+
17+
gcc_info(OUTPUT result)
18+
19+
assert_string_not_empty("${result}" MESSAGE "GCC path not obtained")
20+
21+
assert_defined("result_VERSION" MESSAGE "GCC Version not defined")
22+
assert_string_not_empty("${result_VERSION}" MESSAGE "GCC path not obtained")
23+
endfunction()

0 commit comments

Comments
 (0)