aboutsummaryrefslogtreecommitdiff
path: root/src/tests/test_akfs_mkdir.c
blob: 2ef86b3689e98ff627bb19c896fea1468ed2aba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <stdio.h>
#include <akfs.h>

void test_non_hash_string(){
    char *path = "tes";
    int ec = ak_fs_create_dir_for_hash(path);
    printf("mkdir return code: %d\n", ec);
    path = "tes/t";
    ec = ak_fs_create_dir_for_hash(path);
    printf("mkdir return code: %d\n", ec);
}

void test_hash_string(){
    char *path = "ee26b0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff";
    int ec = ak_fs_create_dir_for_hash(path);
    printf("mkdir return code: %d\n", ec);
}

void test_hash_string2(){
    char *path = "ee2ab0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff";
    int ec = ak_fs_create_dir_for_hash(path);
    printf("mkdir return code: %d\n", ec);
}

void test_hash_string3(){
    char *path = "ee2ab0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a800";
    int ec = ak_fs_create_dir_for_hash(path);
    printf("mkdir return code: %d\n", ec);
}

int main()
{
    test_non_hash_string();
    test_hash_string();
    test_hash_string2();
    test_hash_string3();
    return 0;
}