@@ -6,6 +6,8 @@ module test_manifest
6
6
use fpm_manifest_profile, only: profile_config_t, find_profile
7
7
use fpm_strings, only: operator (.in .), string_t
8
8
use fpm_error, only: fatal_error, error_t
9
+ use tomlf, only : new_table, toml_table, toml_array
10
+ use fpm_toml, only : add_table, add_array, get_value, get_list, set_value, set_list
9
11
implicit none
10
12
private
11
13
public :: collect_manifest
@@ -260,7 +262,6 @@ end subroutine test_default_executable
260
262
! > Dependencies cannot be created from empty tables
261
263
subroutine test_dependency_empty (error )
262
264
use fpm_manifest_dependency
263
- use fpm_toml, only : new_table, toml_table
264
265
265
266
! > Error handling
266
267
type (error_t), allocatable , intent (out ) :: error
@@ -279,7 +280,6 @@ end subroutine test_dependency_empty
279
280
! > Try to create a dependency with conflicting entries
280
281
subroutine test_dependency_pathtag (error )
281
282
use fpm_manifest_dependency
282
- use fpm_toml, only : new_table, toml_table, set_value
283
283
284
284
! > Error handling
285
285
type (error_t), allocatable , intent (out ) :: error
@@ -301,7 +301,6 @@ end subroutine test_dependency_pathtag
301
301
! > Try to create a dependency with conflicting entries
302
302
subroutine test_dependency_nourl (error )
303
303
use fpm_manifest_dependency
304
- use fpm_toml, only : new_table, toml_table, set_value
305
304
306
305
! > Error handling
307
306
type (error_t), allocatable , intent (out ) :: error
@@ -322,7 +321,6 @@ end subroutine test_dependency_nourl
322
321
! > Try to create a dependency with conflicting entries
323
322
subroutine test_dependency_gitpath (error )
324
323
use fpm_manifest_dependency
325
- use fpm_toml, only : new_table, toml_table, set_value
326
324
327
325
! > Error handling
328
326
type (error_t), allocatable , intent (out ) :: error
@@ -344,7 +342,6 @@ end subroutine test_dependency_gitpath
344
342
! > Try to create a dependency with conflicting entries
345
343
subroutine test_dependency_gitconflict (error )
346
344
use fpm_manifest_dependency
347
- use fpm_toml, only : new_table, toml_table, set_value
348
345
349
346
! > Error handling
350
347
type (error_t), allocatable , intent (out ) :: error
@@ -367,7 +364,6 @@ end subroutine test_dependency_gitconflict
367
364
! > Try to create a git dependency with an invalid source format.
368
365
subroutine test_dependency_invalid_git (error )
369
366
use fpm_manifest_dependency
370
- use fpm_toml, only : new_table, toml_table, set_value
371
367
372
368
! > Error handling
373
369
type (error_t), allocatable , intent (out ) :: error
@@ -386,7 +382,6 @@ end subroutine test_dependency_invalid_git
386
382
! > Namespace is necessary if a dependency is not a git or path dependency
387
383
subroutine test_dependency_no_namespace (error )
388
384
use fpm_manifest_dependency
389
- use fpm_toml, only : new_table, toml_table, set_value
390
385
391
386
type (error_t), allocatable , intent (out ) :: error
392
387
@@ -404,7 +399,6 @@ end subroutine test_dependency_no_namespace
404
399
! > Do not specify version with a git or path dependency
405
400
subroutine test_dependency_redundant_v (error )
406
401
use fpm_manifest_dependency
407
- use fpm_toml, only : new_table, toml_table, set_value
408
402
409
403
type (error_t), allocatable , intent (out ) :: error
410
404
@@ -424,7 +418,6 @@ end subroutine test_dependency_redundant_v
424
418
! > Try to create a dependency with conflicting entries
425
419
subroutine test_dependency_wrongkey (error )
426
420
use fpm_manifest_dependency
427
- use fpm_toml, only : new_table, toml_table, set_value
428
421
429
422
! > Error handling
430
423
type (error_t), allocatable , intent (out ) :: error
@@ -445,7 +438,6 @@ end subroutine test_dependency_wrongkey
445
438
! > Dependency tables can be empty
446
439
subroutine test_dependencies_empty (error )
447
440
use fpm_manifest_dependency
448
- use fpm_toml, only : new_table, toml_table
449
441
450
442
! > Error handling
451
443
type (error_t), allocatable , intent (out ) :: error
@@ -468,7 +460,6 @@ end subroutine test_dependencies_empty
468
460
! > Add a dependency as an array, which is not supported
469
461
subroutine test_dependencies_typeerror (error )
470
462
use fpm_manifest_dependency
471
- use fpm_toml, only : new_table, add_array, toml_table, toml_array
472
463
473
464
! > Error handling
474
465
type (error_t), allocatable , intent (out ) :: error
@@ -603,7 +594,6 @@ end subroutine test_profiles_keyvalue_table
603
594
! > Executables cannot be created from empty tables
604
595
subroutine test_executable_empty (error )
605
596
use fpm_manifest_executable
606
- use fpm_toml, only : new_table, toml_table
607
597
608
598
! > Error handling
609
599
type (error_t), allocatable , intent (out ) :: error
@@ -621,7 +611,6 @@ end subroutine test_executable_empty
621
611
! > Pass a wrong TOML type to the name field of the executable
622
612
subroutine test_executable_typeerror (error )
623
613
use fpm_manifest_executable
624
- use fpm_toml, only : new_table, add_table, toml_table
625
614
626
615
! > Error handling
627
616
type (error_t), allocatable , intent (out ) :: error
@@ -642,7 +631,6 @@ end subroutine test_executable_typeerror
642
631
! > Pass a TOML table with insufficient entries to the executable constructor
643
632
subroutine test_executable_noname (error )
644
633
use fpm_manifest_executable
645
- use fpm_toml, only : new_table, add_table, toml_table
646
634
647
635
! > Error handling
648
636
type (error_t), allocatable , intent (out ) :: error
@@ -663,7 +651,6 @@ end subroutine test_executable_noname
663
651
! > Pass a TOML table with not allowed keys
664
652
subroutine test_executable_wrongkey (error )
665
653
use fpm_manifest_executable
666
- use fpm_toml, only : new_table, add_table, toml_table
667
654
668
655
! > Error handling
669
656
type (error_t), allocatable , intent (out ) :: error
@@ -838,7 +825,6 @@ end subroutine test_build_invalid_values
838
825
! > Libraries can be created from empty tables
839
826
subroutine test_library_empty (error )
840
827
use fpm_manifest_library
841
- use fpm_toml, only : new_table, toml_table
842
828
843
829
! > Error handling
844
830
type (error_t), allocatable , intent (out ) :: error
@@ -871,7 +857,6 @@ end subroutine test_library_empty
871
857
! > Pass a TOML table with not allowed keys
872
858
subroutine test_library_wrongkey (error )
873
859
use fpm_manifest_library
874
- use fpm_toml, only : new_table, add_table, toml_table
875
860
876
861
! > Error handling
877
862
type (error_t), allocatable , intent (out ) :: error
@@ -891,7 +876,6 @@ end subroutine test_library_wrongkey
891
876
! > Pass a TOML table with not allowed source dirs
892
877
subroutine test_library_list (error )
893
878
use fpm_manifest_library
894
- use fpm_toml, only : new_table, set_list, toml_table
895
879
896
880
! > Error handling
897
881
type (error_t), allocatable , intent (out ) :: error
@@ -910,7 +894,6 @@ end subroutine test_library_list
910
894
! > Pass a TOML table with a 1-sized source dir list
911
895
subroutine test_library_listone (error )
912
896
use fpm_manifest_library
913
- use fpm_toml, only : new_table, set_list, toml_table
914
897
915
898
! > Error handling
916
899
type (error_t), allocatable , intent (out ) :: error
@@ -933,8 +916,6 @@ end subroutine test_library_listone
933
916
! > Packages cannot be created from empty tables
934
917
subroutine test_package_simple (error )
935
918
use fpm_manifest_package
936
- use fpm_toml, only : new_table, add_table, add_array, set_value, &
937
- & toml_table, toml_array
938
919
939
920
! > Error handling
940
921
type (error_t), allocatable , intent (out ) :: error
@@ -972,7 +953,6 @@ end subroutine test_package_simple
972
953
! > Packages cannot be created from empty tables
973
954
subroutine test_package_empty (error )
974
955
use fpm_manifest_package
975
- use fpm_toml, only : new_table, toml_table
976
956
977
957
! > Error handling
978
958
type (error_t), allocatable , intent (out ) :: error
@@ -990,7 +970,6 @@ end subroutine test_package_empty
990
970
! > Create an array in the package name, which should cause an error
991
971
subroutine test_package_typeerror (error )
992
972
use fpm_manifest_package
993
- use fpm_toml, only : new_table, add_array, toml_table, toml_array
994
973
995
974
! > Error handling
996
975
type (error_t), allocatable , intent (out ) :: error
@@ -1011,7 +990,6 @@ end subroutine test_package_typeerror
1011
990
! > Try to create a new package without a name field
1012
991
subroutine test_package_noname (error )
1013
992
use fpm_manifest_package
1014
- use fpm_toml, only : new_table, add_table, toml_table
1015
993
1016
994
! > Error handling
1017
995
type (error_t), allocatable , intent (out ) :: error
@@ -1034,7 +1012,6 @@ end subroutine test_package_noname
1034
1012
! > Try to read executables from a mixed type array
1035
1013
subroutine test_package_wrongexe (error )
1036
1014
use fpm_manifest_package
1037
- use fpm_toml, only : new_table, set_value, add_array, toml_table, toml_array
1038
1015
1039
1016
! > Error handling
1040
1017
type (error_t), allocatable , intent (out ) :: error
@@ -1057,7 +1034,6 @@ end subroutine test_package_wrongexe
1057
1034
! > Try to read tests from a mixed type array
1058
1035
subroutine test_package_wrongtest (error )
1059
1036
use fpm_manifest_package
1060
- use fpm_toml, only : new_table, set_value, add_array, toml_table, toml_array
1061
1037
1062
1038
! > Error handling
1063
1039
type (error_t), allocatable , intent (out ) :: error
@@ -1080,7 +1056,6 @@ end subroutine test_package_wrongtest
1080
1056
! > Try to read tests from a mixed type array
1081
1057
subroutine test_package_duplicate (error )
1082
1058
use fpm_manifest_package
1083
- use fpm_toml, only : set_value, add_table, add_array, toml_table, toml_array
1084
1059
1085
1060
! > Error handling
1086
1061
type (error_t), allocatable , intent (out ) :: error
@@ -1107,7 +1082,6 @@ end subroutine test_package_duplicate
1107
1082
! > Tests cannot be created from empty tables
1108
1083
subroutine test_test_simple (error )
1109
1084
use fpm_manifest_test
1110
- use fpm_toml, only : new_table, set_value, add_table, toml_table
1111
1085
1112
1086
! > Error handling
1113
1087
type (error_t), allocatable , intent (out ) :: error
@@ -1135,7 +1109,6 @@ end subroutine test_test_simple
1135
1109
! > Tests cannot be created from empty tables
1136
1110
subroutine test_test_empty (error )
1137
1111
use fpm_manifest_test
1138
- use fpm_toml, only : new_table, toml_table
1139
1112
1140
1113
! > Error handling
1141
1114
type (error_t), allocatable , intent (out ) :: error
@@ -1153,7 +1126,6 @@ end subroutine test_test_empty
1153
1126
! > Pass a wrong TOML type to the name field of the test
1154
1127
subroutine test_test_typeerror (error )
1155
1128
use fpm_manifest_test
1156
- use fpm_toml, only : new_table, add_table, toml_table
1157
1129
1158
1130
! > Error handling
1159
1131
type (error_t), allocatable , intent (out ) :: error
@@ -1174,7 +1146,6 @@ end subroutine test_test_typeerror
1174
1146
! > Pass a TOML table with insufficient entries to the test constructor
1175
1147
subroutine test_test_noname (error )
1176
1148
use fpm_manifest_test
1177
- use fpm_toml, only : new_table, add_table, toml_table
1178
1149
1179
1150
! > Error handling
1180
1151
type (error_t), allocatable , intent (out ) :: error
@@ -1195,7 +1166,6 @@ end subroutine test_test_noname
1195
1166
! > Pass a TOML table with not allowed keys
1196
1167
subroutine test_test_wrongkey (error )
1197
1168
use fpm_manifest_test
1198
- use fpm_toml, only : new_table, add_table, toml_table
1199
1169
1200
1170
! > Error handling
1201
1171
type (error_t), allocatable , intent (out ) :: error
@@ -1216,7 +1186,6 @@ end subroutine test_test_wrongkey
1216
1186
! > Create a simple example entry
1217
1187
subroutine test_example_simple (error )
1218
1188
use fpm_manifest_example
1219
- use fpm_toml, only : new_table, set_value, add_table, toml_table
1220
1189
1221
1190
! > Error handling
1222
1191
type (error_t), allocatable , intent (out ) :: error
@@ -1244,7 +1213,6 @@ end subroutine test_example_simple
1244
1213
! > Examples cannot be created from empty tables
1245
1214
subroutine test_example_empty (error )
1246
1215
use fpm_manifest_example
1247
- use fpm_toml, only : new_table, toml_table
1248
1216
1249
1217
! > Error handling
1250
1218
type (error_t), allocatable , intent (out ) :: error
@@ -1262,7 +1230,6 @@ end subroutine test_example_empty
1262
1230
! > Test link options
1263
1231
subroutine test_link_string (error )
1264
1232
use fpm_manifest_build
1265
- use fpm_toml, only : set_value, toml_table
1266
1233
1267
1234
! > Error handling
1268
1235
type (error_t), allocatable , intent (out ) :: error
@@ -1287,7 +1254,6 @@ end subroutine test_link_string
1287
1254
! > Test link options
1288
1255
subroutine test_link_array (error )
1289
1256
use fpm_manifest_build
1290
- use fpm_toml, only : add_array, set_value, toml_table, toml_array
1291
1257
1292
1258
! > Error handling
1293
1259
type (error_t), allocatable , intent (out ) :: error
@@ -1315,7 +1281,6 @@ end subroutine test_link_array
1315
1281
! > Test link options
1316
1282
subroutine test_invalid_link (error )
1317
1283
use fpm_manifest_build
1318
- use fpm_toml, only : add_table, toml_table
1319
1284
1320
1285
! > Error handling
1321
1286
type (error_t), allocatable , intent (out ) :: error
@@ -1335,7 +1300,6 @@ end subroutine test_invalid_link
1335
1300
1336
1301
subroutine test_install_library (error )
1337
1302
use fpm_manifest_install
1338
- use fpm_toml, only : toml_table, set_value
1339
1303
1340
1304
! > Error handling
1341
1305
type (error_t), allocatable , intent (out ) :: error
@@ -1359,7 +1323,6 @@ end subroutine test_install_library
1359
1323
1360
1324
subroutine test_install_empty (error )
1361
1325
use fpm_manifest_install
1362
- use fpm_toml, only : toml_table
1363
1326
1364
1327
! > Error handling
1365
1328
type (error_t), allocatable , intent (out ) :: error
@@ -1382,7 +1345,6 @@ end subroutine test_install_empty
1382
1345
1383
1346
subroutine test_install_wrongkey (error )
1384
1347
use fpm_manifest_install
1385
- use fpm_toml, only : toml_table, set_value
1386
1348
1387
1349
! > Error handling
1388
1350
type (error_t), allocatable , intent (out ) :: error
@@ -1399,7 +1361,6 @@ end subroutine test_install_wrongkey
1399
1361
1400
1362
subroutine test_preprocess_empty (error )
1401
1363
use fpm_manifest_preprocess
1402
- use fpm_toml, only : new_table, toml_table
1403
1364
1404
1365
! > Error handling
1405
1366
type (error_t), allocatable , intent (out ) :: error
@@ -1417,7 +1378,6 @@ end subroutine test_preprocess_empty
1417
1378
! > Pass a TOML table with not allowed keys
1418
1379
subroutine test_preprocess_wrongkey (error )
1419
1380
use fpm_manifest_preprocess
1420
- use fpm_toml, only : new_table, add_table, toml_table
1421
1381
1422
1382
! > Error handling
1423
1383
type (error_t), allocatable , intent (out ) :: error
@@ -1438,7 +1398,6 @@ end subroutine test_preprocess_wrongkey
1438
1398
! > Preprocess table cannot be empty.
1439
1399
subroutine test_preprocessors_empty (error )
1440
1400
use fpm_manifest_preprocess
1441
- use fpm_toml, only : new_table, toml_table
1442
1401
1443
1402
! > Error handling
1444
1403
type (error_t), allocatable , intent (out ) :: error
0 commit comments