48 printf(
"%s: failed to open '%s': %s\r\n",
63 if (dent->
d_name[0] !=
'.')
69 if (str.
endsWith((
const char *)
"Test"))
74 printf(
"%s: failed to add test '%s' to internal Index\n",
char ** m_argv
Program argument values.
int scan(const char *path)
Scan filesystem path for tests.
DirectoryScanner(int argc, char **argv)
Constructor.
Index< ExternalTest, MaximumExternalTests > m_externalTests
External tests that are detected.
int m_argc
Program argument count.
~DirectoryScanner()
Destructor.
Represents external test program.
void deleteAll()
Removes and delete()'s all items.
virtual bool insert(Size &position, T *item)
Adds the given item, if possible.
bool endsWith(const String &suffix) const
Tests if this String ends with the specified suffix.
#define DT_DIR
This is a directory.
C struct dirent * readdir(DIR *dirp)
Read a directory.
C char * strerror(int errnum)
The strerror function maps the number in errnum to a message string.
C int errno
The lvalue errno is used by many functions to return error values.
#define EXIT_SUCCESS
Successful termination.
#define EXIT_FAILURE
Unsuccessful termination.
C int printf(const char *format,...)
Output a formatted string to standard output.
#define DT_REG
This is a regular file.
C DIR * opendir(const char *dirname)
Open directory associated with file descriptor.
C int snprintf(char *buffer, unsigned int size, const char *fmt,...)
Write a formatted string into a buffer.
C int closedir(DIR *dirp)
Close a directory stream.
A type representing a directory stream.
Represents a directory entry.
char d_name[DIRLEN]
Name of entry.