Move test-ref-configs into its own component
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index 1b33c65..17f9002 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -483,16 +483,16 @@
     msg "test: ssl-opt.sh (ASan build)" # ~ 1 min
     if_build_succeeded tests/ssl-opt.sh
 
-    msg "test/build: ref-configs (ASan build)" # ~ 6 min 20s
-    record_status tests/scripts/test-ref-configs.pl
-
-    msg "build: with ASan (rebuild after ref-configs)" # ~ 1 min
-    make
-
     msg "test: compat.sh (ASan build)" # ~ 6 min
     if_build_succeeded tests/compat.sh
 }
 
+component_test_ref_configs () {
+    msg "test/build: ref-configs (ASan build)" # ~ 6 min 20s
+    CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
+    record_status tests/scripts/test-ref-configs.pl
+}
+
 component_test_sslv3 () {
     msg "build: Default + SSLv3 (ASan build)" # ~ 6 min
     cp "$CONFIG_H" "$CONFIG_BAK"
@@ -1167,6 +1167,7 @@
 
 # Test many different configurations
 run_component component_test_default_cmake_gcc_asan
+run_component component_test_ref_configs
 run_component component_test_sslv3
 run_component component_test_no_renegotiation
 run_component component_test_rsa_no_crt