| 1892 | #endif // FORCE_SAN_FAILURE |
| 1893 | |
| 1894 | int main(int arg_c, char* arg_v[]) |
| 1895 | { |
| 1896 | BASISU_NOTE_UNUSED(arg_c); |
| 1897 | BASISU_NOTE_UNUSED(arg_v); |
| 1898 | |
| 1899 | #if defined(DEBUG) | defined(_DEBUG) |
| 1900 | printf("DEBUG\n"); |
| 1901 | #endif |
| 1902 | #ifdef __SANITIZE_ADDRESS__ |
| 1903 | printf("__SANITIZE_ADDRESS__\n"); |
| 1904 | #endif |
| 1905 | |
| 1906 | #ifdef FORCE_SAN_FAILURE |
| 1907 | force_san_failure(); |
| 1908 | #endif |
| 1909 | |
| 1910 | #if USE_ENCODER |
| 1911 | basisu_encoder_init(USE_OPENCL, false); |
| 1912 | |
| 1913 | #if ENABLE_DEBUG_PRINTF |
| 1914 | enable_debug_printf(true); |
| 1915 | #endif |
| 1916 | |
| 1917 | if (!lowlevel_compression_tests()) |
| 1918 | { |
| 1919 | fprintf(stderr, "lowlevel_compression_tests() failed!\n"); |
| 1920 | return EXIT_FAILURE; |
| 1921 | } |
| 1922 | |
| 1923 | if (!random_compress_test()) |
| 1924 | { |
| 1925 | fprintf(stderr, "random_compress_test() failed!\n"); |
| 1926 | return EXIT_FAILURE; |
| 1927 | } |
| 1928 | |
| 1929 | if (!block_unpack_and_transcode_example()) |
| 1930 | { |
| 1931 | fprintf(stderr, "block_unpack_and_transcode_example() failed!\n"); |
| 1932 | return EXIT_FAILURE; |
| 1933 | } |
| 1934 | |
| 1935 | fuzz_uastc_hdr_transcoder_test(); |
| 1936 | |
| 1937 | if (!encode_etc1s()) |
| 1938 | { |
| 1939 | fprintf(stderr, "encode_etc1s() failed!\n"); |
| 1940 | return EXIT_FAILURE; |
| 1941 | } |
| 1942 | |
| 1943 | if (!encode_uastc_hdr()) |
| 1944 | { |
| 1945 | fprintf(stderr, "encode_uastc_hdr() failed!\n"); |
| 1946 | return EXIT_FAILURE; |
| 1947 | } |
| 1948 | |
| 1949 | if (!encode_uastc_ldr()) |
| 1950 | { |
| 1951 | fprintf(stderr, "encode_uastc_ldr() failed!\n"); |
nothing calls this directly
no test coverage detected