Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
731 changes: 599 additions & 132 deletions testing/ltp/CMakeLists.txt

Large diffs are not rendered by default.

536 changes: 480 additions & 56 deletions testing/ltp/Makefile

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions testing/ltp/include/asm/posix_types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/****************************************************************************
* apps/testing/ltp/include/asm/posix_types.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

#ifndef _LTP_ASM_POSIX_TYPES_H
#define _LTP_ASM_POSIX_TYPES_H

/****************************************************************************
* Included Files
****************************************************************************/

/* This is just a placeholder to simplify cross-compiling the LTP Linux
* Kernel cases
*/

#endif /* _LTP_ASM_POSIX_TYPES_H */
32 changes: 32 additions & 0 deletions testing/ltp/include/asm/types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/****************************************************************************
* apps/testing/ltp/include/asm/types.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

#ifndef _LTP_ASM_TYPES_H
#define _LTP_ASM_TYPES_H

/****************************************************************************
* Included Files
****************************************************************************/

#include <sys/types.h>

#endif /* _LTP_ASM_TYPES_H */
42 changes: 42 additions & 0 deletions testing/ltp/include/features.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/****************************************************************************
* apps/testing/ltp/include/features.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

/* when we build target at sim platform, the sim build will reference the
* "/usr/include/features.h" in the host system. The implementation of the
* "/usr/include/features.h" file in the host system uses the "_FEATURES_H"
* macro to prevent duplicate inclusions.
* To avoid inclusion failures, we need to define a different macro to solve
* this problem.
*/

#ifndef _LTP_FEATURES_H
#define _LTP_FEATURES_H

/****************************************************************************
* Included Files
****************************************************************************/

#if __has_include_next("features.h")
#include_next <features.h>
#endif

#endif /* _LTP_FEATURES_H */
40 changes: 40 additions & 0 deletions testing/ltp/include/grp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/****************************************************************************
* apps/testing/ltp/include/grp.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

#ifndef _LTP_GRP_H
#define _LTP_GRP_H

/****************************************************************************
* Included Files
****************************************************************************/

#include_next <grp.h>

/* the following function declaration to handle
* -Wimplicit-function-declaration build warnings
*/

int getgroups(int size, gid_t list[]);

int setgroups(size_t size, const gid_t *list);

#endif /* _LTP_GRP_H */
50 changes: 50 additions & 0 deletions testing/ltp/include/lapi/posix_clocks.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/****************************************************************************
* apps/testing/ltp/include/lapi/posix_clocks.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

#ifndef _LTP_LAPI_POSIX_CLOCKS_H__
#define _LTP_LAPI_POSIX_CLOCKS_H__

/****************************************************************************
* Included Files
****************************************************************************/

#include <time.h>

/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

#define MAX_CLOCKS 16

#define CLOCK_MONOTONIC_RAW 5

#define CLOCK_REALTIME_COARSE 6

#define CLOCK_MONOTONIC_COARSE 7

#define CLOCK_REALTIME_ALARM 8

#define CLOCK_BOOTTIME_ALARM 9

#define CLOCK_TAI 11

#endif /* _LTP_LAPI_POSIX_CLOCKS_H__ */
Loading