/lxc/src/tests/ |
H A D | destroytest.c | 29 #define MYNAME "lxctest1" macro 41 ret = execlp("lxc-create", "lxc-create", "-t", "busybox", "-n", MYNAME, NULL); 68 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) { 69 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME); 75 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME); 85 fprintf(stderr, "%d: %s thought it was not defined\n", __LINE__, MYNAME); 90 fprintf(stderr, "%d: error deleting %s\n", __LINE__, MYNAME); 95 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME);
|
H A D | saveconfig.c | 29 #define MYNAME "lxctest1" macro 41 ret = execlp("lxc-create", "lxc-create", "-t", "busybox", "-n", MYNAME, NULL); 68 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) { 69 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME); 75 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME); 85 fprintf(stderr, "%d: %s thought it was not defined\n", __LINE__, MYNAME); 95 rename(LXCPATH "/" MYNAME "/config", LXCPATH "/" MYNAME "/config.bak"); 102 fprintf(stderr, "%d: error deleting %s\n", __LINE__, MYNAME); 107 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME); [all...] |
H A D | shutdowntest.c | 30 #define MYNAME "lxctest1" macro 37 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) { 38 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME); 44 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME); 60 fprintf(stderr, "%d: %s thought it was not defined\n", __LINE__, MYNAME); 68 fprintf(stderr, "%d: failed to start %s\n", __LINE__, MYNAME); 76 fprintf(stderr, "%d: failed to shut down %s\n", __LINE__, MYNAME); 78 fprintf(stderr, "%d: failed to kill %s\n", __LINE__, MYNAME); 84 fprintf(stderr, "%d: error deleting %s\n", __LINE__, MYNAME); 89 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME); [all...] |
H A D | createtest.c | 29 #define MYNAME "lxctest1" macro 36 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) { 37 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME); 43 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME); 59 fprintf(stderr, "%d: %s thought it was not defined\n", __LINE__, MYNAME); 67 fprintf(stderr, "%d: failed to start %s\n", __LINE__, MYNAME); 72 fprintf(stderr, "%d: failed to stop %s\n", __LINE__, MYNAME); 77 fprintf(stderr, "%d: error deleting %s\n", __LINE__, MYNAME); 82 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME);
|
H A D | containertests.c | 31 #define MYNAME "lxctest1" macro 43 ret = execlp("lxc-destroy", "lxc-destroy", "-f", "-n", MYNAME, NULL); 75 ret = execlp("lxc-create", "lxc-create", "-t", "busybox", "-n", MYNAME, NULL); 107 c = lxc_container_new(MYNAME, NULL); 109 fprintf(stderr, "%d: error creating lxc_container %s\n", __LINE__, MYNAME); 121 if (strcmp(c->name, MYNAME) != 0) { 122 fprintf(stderr, "%d: container has wrong name (%s not %s)\n", __LINE__, c->name, MYNAME); 126 #define CONFIGFNAM LXCPATH "/" MYNAME "/config" 153 c = lxc_container_new(MYNAME, NULL); 155 fprintf(stderr, "%d: error creating lxc_container %s\n", __LINE__, MYNAME); [all...] |
H A D | getkeys.c | 30 #define MYNAME "lxctest1" macro 38 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) { 39 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME);
|
H A D | lxcpath.c | 30 #define MYNAME "lxctest1" macro 42 c = lxc_container_new(MYNAME, NULL); 68 c = lxc_container_new(MYNAME, CPATH);
|
H A D | clonetest.c | 29 #define MYNAME "clonetest1" macro 37 c = lxc_container_new(MYNAME, NULL); 50 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) { 51 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME); 63 fprintf(stderr, "%d: %s thought it was not defined\n", __LINE__, MYNAME); 145 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) {
|
H A D | startone.c | 31 #define MYNAME "lxctest1" macro 43 ret = execlp("lxc-destroy", "lxc-destroy", "-f", "-n", MYNAME, NULL); 75 ret = execlp("lxc-create", "lxc-create", "-t", "busybox", "-n", MYNAME, NULL); 108 c = lxc_container_new(MYNAME, NULL); 110 fprintf(stderr, "%d: error creating lxc_container %s\n", __LINE__, MYNAME); 116 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME); 128 fprintf(stderr, "%d: %s thought it was not defined\n", __LINE__, MYNAME); 134 fprintf(stderr, "%d: %s not running but had cgroup settings\n", __LINE__, MYNAME); 141 fprintf(stderr, "%d: %s not running but coudl set cgroup settings\n", __LINE__, MYNAME);
|
H A D | snapshot.c | 28 #define MYNAME "snapxxx1" macro 47 c = lxc_container_new(MYNAME, NULL); 65 c = lxc_container_new(MYNAME, NULL); 72 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME); 95 snprintf(path, 1024, "%s/%s/snaps/snap0/rootfs", lxc_get_global_config_item("lxc.lxcpath"), MYNAME);
|
H A D | aa.c | 28 #define MYNAME "test-aa" macro 33 c = lxc_container_new(MYNAME, NULL); 154 c = lxc_container_new(MYNAME, NULL); 161 fprintf(stderr, "%d: %s thought it was defined\n", __LINE__, MYNAME);
|
H A D | get_item.c | 31 #define MYNAME "lxctest1" macro 40 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME); 166 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) { 167 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME); 173 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) { 174 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME); 184 if ((c = lxc_container_new(MYNAME, NULL)) == NULL) { 185 fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME);
|
H A D | cgpath.c | 36 #define MYNAME "lxctest1" macro 194 if (test_container(NULL, NULL, MYNAME, "busybox") < 0) 198 if (test_container("/var/lib/lxctest2", NULL, MYNAME, "busybox") < 0)
|